package com.rd.student.jike.class2.lihongming.week731_806.Day0731;

import java.util.Collections;
import java.util.LinkedList;

/**
 * @Auther:Heinrich
 * @Date:2023/7/31-07-31-15:33
 * @Description:c230731.test
 * @version:1.0
 */
public class test04 {
    public static void main(String[] args) {
        LinkedList<Integer> list = new LinkedList<>();
        for (int i = 0; i < 50; i++) {
            list.add(i);
        }
        Collections.shuffle(list);
        for (int i = 0; i < 20; i++) {
            System.out.print(list.get(i)+" ");
        }
    }
}
